package com.example.demo1.mapper;

import com.example.demo1.entity.BaUserRole;
import com.example.demo1.entity.BaUserRoleKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaUserRoleMapper {

    int deleteByPrimaryKey(BaUserRoleKey key);

    int insert(BaUserRole record);

    int insertSelective(BaUserRole record);

    BaUserRole selectByPrimaryKey(BaUserRoleKey key);

    int updateByPrimaryKeySelective(BaUserRole record);

    int updateByPrimaryKey(BaUserRole record);

    List<Integer> selectRoleIdsByUserId(Integer staffId);

    int deleteByUserId(Integer userId);

}